﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="Administration.aspx.cs" Inherits="Administration" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
    <script src="../Scripts/jquery-1.8.2.js" type="text/javascript"></script>
    <script src="../Scripts/jquery-ui-1.9.0.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $("#admin_tabs").tabs({ active: '<%= tabId %>' }).removeClass("ui-widget");
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <h2>
        SSO instellingen configureren
    </h2>
    <p>
        Kies hier betreffende applicatie.
    </p>
    <div id="admin_tabs" style="top: 10px">
        <ul>
            <li><a href="#tab_som">Som</a></li>
            <li><a href="#tab_prowise">Prowise</a></li>
        </ul>
        <div id="tab_som">
            <span class="failureNotification">
                <asp:Literal ID="ErrorMessage" runat="server"></asp:Literal>
            </span>
            <asp:ValidationSummary ID="SomValidationSummary" runat="server" CssClass="failureNotification"
                ValidationGroup="SomValidationGroup" />
            <div class="settings">
                <fieldset class="changeSettings">
                    <legend>Instellingen SOM</legend>
                    <p>
                        <asp:Label ID="somBrinNrLabel" runat="server">Brin-Nummer:</asp:Label>
                        <asp:TextBox ID="somBrinNr" runat="server" CssClass="textEntry"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="somBrinNrRequired" runat="server" ControlToValidate="somBrinNr"
                            CssClass="failureNotification" ErrorMessage="Brin-Nummer is vereist." ToolTip="Brin-Nummer is vereist."
                            ValidationGroup="SomValidationGroup">*</asp:RequiredFieldValidator>
                    </p>
                    <p>
                        <asp:Label ID="somBeveiligingsCodeLabel" runat="server">Beveiligings-Code:</asp:Label>
                        <asp:TextBox ID="somBeveiligingsCode" runat="server" CssClass="textEntry" TextMode="Password"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="somBeveiligingsCodeRequired" runat="server" ControlToValidate="somBeveiligingsCode"
                            CssClass="failureNotification" ErrorMessage="Beveiligings-Code is vereist." ToolTip="Beveiligings-Code is vereist."
                            ValidationGroup="SomValidationGroup">*</asp:RequiredFieldValidator>
                    </p>
                    <p>
                        <asp:Label ID="somLoginUrlLabel" runat="server">Login-Url:</asp:Label>
                        <asp:TextBox ID="somLoginUrl" runat="server" CssClass="textEntry"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="somLoginUrlRequired" runat="server" ControlToValidate="somLoginUrl"
                            CssClass="failureNotification" ErrorMessage="Login-Url is vereist." ToolTip="Login-Url is vereist."
                            ValidationGroup="SomValidationGroup">*</asp:RequiredFieldValidator>
                    </p>
                    <p>
                        <asp:Label ID="somWebserviceEndpointLabel" runat="server">Som-Webservice-Endpoint:</asp:Label>
                        <asp:TextBox ID="somWebserviceEndpoint" runat="server" CssClass="textEntry"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="somWebserviceEndpointRequired" runat="server" ControlToValidate="somWebserviceEndpoint"
                            CssClass="failureNotification" ErrorMessage="Som-Webservice-Endpoint is vereist."
                            ToolTip="Som-Webservice-Endpoint is vereist." ValidationGroup="SomValidationGroup">*</asp:RequiredFieldValidator>
                    </p>
                </fieldset>
                <asp:Label ID="Label1" runat="server" Text="Gegevens zijn opgeslagen" CssClass="notificationOK"
                    Visible="false"></asp:Label>
                <p class="submitButton">
                    <asp:Button ID="saveSom" runat="server" Text="Opslaan" ValidationGroup="SomValidationGroup"
                        OnClick="saveSom_Click" />
                </p>
            </div>
        </div>
        <div id="tab_prowise">
            <span class="failureNotification">
                <asp:Literal ID="Literal1" runat="server"></asp:Literal>
            </span>
            <asp:ValidationSummary ID="ValidationSummary1" runat="server" CssClass="failureNotification"
                ValidationGroup="ProwiseValidationGroup" />
            <div class="settings">
                <fieldset class="changeSettings">
                    <legend>Instellingen Prowise</legend>
                    <p>
                        <asp:Label ID="ProwiseBrinNrLabel" runat="server">Brin-Nummer:</asp:Label>
                        <asp:TextBox ID="ProwiseBrinNr" runat="server" CssClass="textEntry"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="ProwiseBrinNrRequired" runat="server" ControlToValidate="ProwiseBrinNr"
                            CssClass="failureNotification" ErrorMessage="" ToolTip="Brin-Nummer is vereist."
                            ValidationGroup="ProwiseValidationGroup">*</asp:RequiredFieldValidator>
                    </p>
                    <p>
                        <asp:Label ID="ProwiseOrgIdLabel" runat="server">Organisatie-Nummer:</asp:Label>
                        <asp:TextBox ID="ProwiseOrgId" runat="server" CssClass="textEntry"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="ProwiseOrgIdRequired" runat="server" ControlToValidate="ProwiseOrgId"
                            CssClass="failureNotification" ErrorMessage="" ToolTip="Organisatie-Nummer is vereist."
                            ValidationGroup="ProwiseValidationGroup">*</asp:RequiredFieldValidator>
                    </p>
                    <p>
                        <asp:Label ID="ProwiseSharedSecretLabel" runat="server">Beveiligings-Sleutel:</asp:Label>
                        <asp:TextBox ID="ProwiseSharedSecret" runat="server" CssClass="textEntry" TextMode="Password"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="ProwiseSharedSecretRequired" runat="server" ControlToValidate="ProwiseSharedSecret"
                            CssClass="failureNotification" ErrorMessage="" ToolTip="Beveiligings-Sleutel is vereist."
                            ValidationGroup="ProwiseValidationGroup">*</asp:RequiredFieldValidator>
                    </p>
                </fieldset>
                <asp:Label ID="Label3" runat="server" Text="Gegevens zijn opgeslagen" CssClass="notificationOK"
                    Visible="false"></asp:Label>
                <p class="submitButton">
                    <asp:Button ID="saveProwise" runat="server" Text="Opslaan" ValidationGroup="ProwiseValidationGroup"
                        OnClick="saveProwise_Click" />
                </p>
            </div>
        </div>
    </div>
</asp:Content>
